package com.xplay.xpocker.entity;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;

import java.io.Serializable;
import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.TableId;
import jdk.nashorn.internal.objects.annotations.Constructor;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 *
 * </p>
 *
 * @author xplay
 * @since 2024-04-26
 */
@Data
@Builder
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
public class GameRuMahjongLogs implements Serializable {

    public GameRuMahjongLogs() {
    }


    @TableId
    private BigDecimal id;

    /**
     * 1服务器下发，2用户上报
     */
    private Integer type;

    /**
     * 事件名称
     */
    private String action;

    /**
     * 备注
     */
    private String memo;

    /**
     * 数据
     */
    private String data;

    /**
     * 胡牌
     */
    @TableField("card_code")
    private Integer cardCode;

    /**
     * 胡牌倍数
     */
    private Integer multiple;

    @TableField(value = "source_user_id", updateStrategy = FieldStrategy.IGNORED)
    private BigDecimal sourceUserId;

    @TableField(value = "target_user_id", updateStrategy = FieldStrategy.IGNORED)
    private BigDecimal targetUserId;

    /**
     * 房间号
     */
    @TableField("room_id")
    private BigDecimal roomId;


}
